.class Lcom/melesta/payment/inapp3/InAppSystem$ConsumeFinishedListener;
.super Ljava/lang/Object;
.source "InAppSystem.java"

# interfaces
.implements Lcom/melesta/payment/inapp3/IabHelper$OnConsumeFinishedListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/melesta/payment/inapp3/InAppSystem;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "ConsumeFinishedListener"
.end annotation


# instance fields
.field private final mDdHelper:Lcom/melesta/engine/DatabaseHelper;

.field private final mTransaction:Lcom/melesta/payment/PaymentTransaction;

.field final synthetic this$0:Lcom/melesta/payment/inapp3/InAppSystem;


# direct methods
.method public constructor <init>(Lcom/melesta/payment/inapp3/InAppSystem;Lcom/melesta/payment/PaymentTransaction;Lcom/melesta/engine/DatabaseHelper;)V
    .locals 0
    .parameter
    .parameter "tr"
    .parameter "dbh"

    .prologue
    .line 66
    iput-object p1, p0, Lcom/melesta/payment/inapp3/InAppSystem$ConsumeFinishedListener;->this$0:Lcom/melesta/payment/inapp3/InAppSystem;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 67
    iput-object p2, p0, Lcom/melesta/payment/inapp3/InAppSystem$ConsumeFinishedListener;->mTransaction:Lcom/melesta/payment/PaymentTransaction;

    .line 68
    iput-object p3, p0, Lcom/melesta/payment/inapp3/InAppSystem$ConsumeFinishedListener;->mDdHelper:Lcom/melesta/engine/DatabaseHelper;

    .line 69
    return-void
.end method


# virtual methods
.method public onConsumeFinished(Lcom/melesta/payment/inapp3/Purchase;Lcom/melesta/payment/inapp3/IabResult;)V
    .locals 3
    .parameter "purchase"
    .parameter "result"

    .prologue
    .line 73
    const-string v0, "payment-inapp"

    const-string v1, "consumed"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 74
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppSystem$ConsumeFinishedListener;->mTransaction:Lcom/melesta/payment/PaymentTransaction;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    iput-wide v1, v0, Lcom/melesta/payment/PaymentTransaction;->consumeTime:J

    .line 76
    iget-object v0, p0, Lcom/melesta/payment/inapp3/InAppSystem$ConsumeFinishedListener;->mDdHelper:Lcom/melesta/engine/DatabaseHelper;

    iget-object v1, p0, Lcom/melesta/payment/inapp3/InAppSystem$ConsumeFinishedListener;->mTransaction:Lcom/melesta/payment/PaymentTransaction;

    invoke-virtual {v0, v1}, Lcom/melesta/engine/DatabaseHelper;->saveTransaction(Lcom/melesta/payment/PaymentTransaction;)J

    .line 77
    return-void
.end method
